package DBClasses;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Blob;

@PersistenceCapable(identityType = IdentityType.UNSPECIFIED)
public class EGSImage
{
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;

	public Long getId()
	{
		return id;
	}
	
	@Persistent
	private Blob img;

	public Blob getImg()
	{
		return img;
	}

	public EGSImage(byte[] data)
	{
		this.img=new Blob(data);
	}
}
